package com.zhenhe.core.dto;

public class APIResultDto<T> {
	
	public final static int SUCCESS_OK = 1;
	
	public final static int ERROR = 0;
	//超时
	public static final Integer LOGIN_TIMEOUT = -2;
	//未登陆
	public static final Integer UN_LOGIN = -1;
	//黑名单用户
	public static final Integer BLANKLIST = -4;
	//系统错误
	public static final Integer SYSTEM_ERROR = -3;
		
	private T data;
	
	private String errorCode;
	
	private int status;
	
	private String message;


	public T getData() {
		return data;
	}

	public void setData(T result) {
		this.data = result;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	@Override
	public String toString() {
		return "APIResultDto [data=" + data + ", errorCode=" + errorCode + ", message="
				+ message + ", status=" + status+"]";
	}

	
}
